<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="java.util.Vector,java.util.ArrayList,com.ejoysoft.wlanyz.business.Environment,com.ejoysoft.wlanyz.business.Ac,com.ejoysoft.common.Constants,com.ejoysoft.wlanyz.system.SysUserUnit,com.ejoysoft.common.exception.NoRightException" %>
<%@page import="com.ejoysoft.common.Format"%>
<%@ include file="../include/jsp/head.jsp"%>

<%try{
	if (!globa.userSession.hasRight("40020"))
		throw new NoRightException("用户不具备操作该功能模块的权限，请与系统管理员联系！");
%>


<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
	String url = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	int width = 1150;
	int height = 350;
	//初始化
    Environment  resultsshow=null;
    Environment obj=new Environment(globa);
	//拿到转过来的城市名
    String  strCity = ParamUtil.getString(request,"strCity","");
    globa.city = strCity;
    //查询条件

    String  strStartTime = ParamUtil.getString(request,"strStartTime","");
    String  strEndTime = ParamUtil.getString(request,"strEndTime","");
    String strStartTime1 = strStartTime;
    String strEndTime1 = strEndTime;
    if(strStartTime1 == null || strStartTime1.equals(""))strStartTime1= "1000-01-01";
    if(strEndTime1 == null || strEndTime1.equals(""))strEndTime1= "9999-01-01";
    String paramters = strCity + "_" + strStartTime1 + "_" + strEndTime1;
	String tWhere=" where 1 = 1   ";
	if(!strStartTime.equals("")&&!strEndTime.equals("")){
	 if(strStartTime.compareTo(strEndTime)>0)
       {
          out.print("<script>alert('起始时间大于终止时间，请重新输入');window.history.back(-1);</script>");  	
        } 
	}
	 if(!strCity.equals("")){
     tWhere += " and c.strCity LIKE '%"+ strCity +"%'";
    }
	
	
	
	ArrayList<String> cityList = obj.returnCity("");
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%=application.getAttribute("APP_TITLE")%></title> 
<link href="../css/main.css" rel="stylesheet" type="text/css" />
<script src="../include/DatePicker/WdatePicker.js"></script>
<script language="JavaScript" src="../include/date/popc.js"></script>
<script src="../include/js/list.js"></script>
<script language="javascript">

 
 function showByTime(){
 	frm.action = "wfeel_list.jsp"; 
	frm.submit();
 }
</script>
<style>
A {text-decoration: NONE} 
</style>
<script src="../include/js/chkFrm.js"></script>

<script language="javascript">



var isIe=(document.all)?true:false;
//设置select的可见状态
var j=1;
function setSelectState(state)
{
var objl=document.getElementsByTagName('select');
for(var i=0;i<objl.length;i++)
{
//alert();
objl[i].style.visibility=state;
}
}

function clkOn(){
	frm.action="wfeel_list.jsp";
	frm.submit();
}
function clkOn2(){
	frm.action="wfeel_list2.jsp";
	frm.submit();
}       
function sbm2(){
	frm.action = "wfeel_list.jsp"; 
	frm.submit();
}    
</script>
</head>



<body>
<form name=frm method=post action="wfeel_list.jsp"> 
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><img src="../images/ri_list.jpg" width="14" height="14" align="absbottom" />&nbsp;您现在所在的位置：<font color="#0e7cc9">用户感知分析</font> &gt; WLAN网络用户感知分析</td>
  </tr>
</table>
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
  
  <tr>
    <td height="45" valign="middle" bgcolor="e1eef7">
      <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td align="left" width="25%" height="40">城市<span class="STYLE1"></span>
          <select id="strCity" name="strCity"  class="sel1" style="width:100px" onchange="sbm2();">
		    <option value="">--请选择--</option>
			  <% for (int j = 0; j <  cityList.size(); j++) {
					String city = (String)(cityList.get(j));
					String selected = "";
					if(strCity!= null && strCity.equals(city))
						selected = "selected='selected'";
				%>
				<option value="<%=city%>" <%=selected%>>
					<%=city%>
				</option>
				<%
				}
				%>
		</select>
		</td>
		<td> 
        	起止时间  <input id="strStartTime" name="strStartTime" type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH.mm.ss'})" readonly="readonly" style="width:'20%'" value="<%=strStartTime%>"  class="sell"/>—<input id="strEndTime" name="strEndTime" type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH.mm.ss'})" readonly="readonly" style="width:'20%'" value="<%=strEndTime%>"  class="sell"/>
         <img src="../images/search.jpg" width="58" height="28" align="absmiddle" onclick="showByTime();" style="cursor:hand"/></td>
          
        </tr>
      </table></td>
  </tr>
</table>
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
 <tr>
 <td width="9%"  height="27" background="../images/tab_1.jpg" id="tabLabel1" onclick="clkOn()" style="cursor:hand">地市测试数据分析</td>
 <td width="9%"  background="../images/tab_2.jpg" id="tabLabel2"  onclick="clkOn2()" style="cursor:hand">热点测试数据分析</td>

 <td background="../images/tab_2.jpg">&nbsp;</td>
    </tr>
 </table>
<%



%>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
	codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
	width="<%=width%>" height="<%=height%>" id="ie_chart"
	align="middle">
	<param name="allowScriptAccess" value="sameDomain" />
	<param name="movie"
		value="<%=url%>/environment/open-flash-chart.swf?width=<%=width%>&height=<%=height%>&data=<%=url%>/feeling/wfeel_suc.jsp?paramters=<%=paramters %>" />
	<param name="quality" value="high" />
	<param name="bgcolor" value="#FFFFFF" />
	<embed src="<%=url%>/environment/open-flash-chart.swf?data=<%=url%>/feeling/wfeel_suc.jsp?paramters=<%=paramters %>" quality="high"
		bgcolor="#FFFFFF" width="<%=width%>" height="<%=height%>"
		name="chart" align="middle" allowScriptAccess="sameDomain"
		type="application/x-shockwave-flash"
		pluginspage="http://www.macromedia.com/go/getflashplayer"
		id="chart" />
</object>


<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
	codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
	width="<%=width%>" height="<%=height%>" id="ie_chart"
	align="middle">
	<param name="allowScriptAccess" value="sameDomain" />
	<param name="movie"
		value="<%=url%>/environment/open-flash-chart.swf?width=<%=width%>&height=<%=height%>&data=<%=url%>/feeling/wfeel_time.jsp?paramters=<%=paramters %>" />
	<param name="quality" value="high" />
	<param name="bgcolor" value="#FFFFFF" />
	<embed src="<%=url%>/environment/open-flash-chart.swf?data=<%=url%>/feeling/wfeel_time.jsp?paramters=<%=paramters %>" quality="high"
		bgcolor="#FFFFFF" width="<%=width%>" height="<%=height%>"
		name="chart" align="middle" allowScriptAccess="sameDomain"
		type="application/x-shockwave-flash"
		pluginspage="http://www.macromedia.com/go/getflashplayer"
		id="chart" />
</object>


<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
	codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
	width="<%=width%>" height="<%=height%>" id="ie_chart"
	align="middle">
	<param name="allowScriptAccess" value="sameDomain" />
	<param name="movie"
		value="<%=url%>/environment/open-flash-chart.swf?width=<%=width%>&height=<%=height%>&data=<%=url%>/feeling/wfeel_count.jsp?paramters=<%=paramters %> " />
	<param name="quality" value="high" />
	<param name="bgcolor" value="#FFFFFF" />
	<embed src="<%=url%>/environment/open-flash-chart.swf?data=<%=url%>/feeling/wfeel_count.jsp?paramters=<%=paramters %>" quality="high"
		bgcolor="#FFFFFF" width="<%=width%>" height="<%=height%>"
		name="chart" align="middle" allowScriptAccess="sameDomain"
		type="application/x-shockwave-flash"
		pluginspage="http://www.macromedia.com/go/getflashplayer"
		id="chart" />
</object>

 </form>
</body>
</html>
<%     	}catch (Exception e) {
            e.printStackTrace();        
        } %>
<%@ include file="../include/jsp/footer.jsp"%>